// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class Role : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<Role, MasterDbContextLocator>
    {

        public int Id { get; set; }
        public string RoleCode { get; set; }
        public string RoleName { get; set; }
        public string RoleDesp { get; set; }
        public string Ordinal { get; set; }
    
        public void Configure(EntityTypeBuilder<Role> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.HasIndex(e => e.RoleCode, "IX_Role");

                entityBuilder.Property(e => e.Ordinal).HasMaxLength(100);

                entityBuilder.Property(e => e.RoleCode).HasMaxLength(100);

                entityBuilder.Property(e => e.RoleDesp).HasMaxLength(100);

                entityBuilder.Property(e => e.RoleName).HasMaxLength(100);
        }

    }
}

